Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.social.workspace.content.views--contentViews

This contribution is part of XML component org.nuxeo.ecm.social.workspace.content.views inside nuxeo-social-workspace-web-5.8.jar

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="SocialWorkspaces">
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>SELECT * FROM SocialWorkspace WHERE (ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0)</pattern>
            <sort ascending="true" column="dc:title"/>
            <pageSize>10</pageSize>
          </coreQueryPageProvider>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
          <selectionList>CURRENT_SELECTION</selectionList>
          <actions category="MODERATE_SOCIAL_WORKSPACE"/>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="SocialWorkspaces@cvListingLayout" title="document_listing" translateTitle="true"/>
          </resultLayouts>
        </contentView>
  • <contentView name="article_listing_view">
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT *
                FROM Article
               WHERE ecm:isProxy = ?
                     AND ecm:mixinType != 'HiddenInNavigation'
                     AND ecm:isCheckedInVersion = 0
                     AND ecm:currentLifeCycleState != 'deleted'
                     AND ecm:path STARTSWITH ?
            </pattern>
            <pageSize>50</pageSize>
            <parameter>#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 0 : 1}
            </parameter>
            <parameter>#{socialWorkspaceActions.getSocialWorkspace().getPath()}
            </parameter>
            <sort ascending="true" column="dc:created"/>
          </coreQueryPageProvider>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
          <selectionList>CURRENT_SELECTION</selectionList>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="article_listing" title="document_listing" translateTitle="false"/>
          </resultLayouts>
        </contentView>
  • <contentView name="news_items_listing_view">
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT *
                FROM NewsItem
               WHERE ecm:isProxy = 0
                     AND ecm:mixinType != 'HiddenInNavigation'
                     AND ecm:isCheckedInVersion = 0
                     AND ecm:currentLifeCycleState != 'deleted'
                     AND ecm:path STARTSWITH ?
            </pattern>
            <pageSize>50</pageSize>
            <parameter>#{socialWorkspaceActions.getSocialWorkspace().getPath()}
            </parameter>
            <sort ascending="true" column="dc:created"/>
          </coreQueryPageProvider>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
          <selectionList>CURRENT_SELECTION</selectionList>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="news_item_listing" title="document_listing" translateTitle="false"/>
          </resultLayouts>
        </contentView>
  • <contentView name="file_listing_view">
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT *
                FROM File
               WHERE ecm:isProxy = ?
                     AND ecm:mixinType != 'HiddenInNavigation'
                     AND ecm:isCheckedInVersion = 0
                     AND ecm:currentLifeCycleState != 'deleted'
                     AND ecm:path STARTSWITH ?
              </pattern>
            <pageSize>50</pageSize>
            <parameter>#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 0 : 1}
            </parameter>
            <parameter>#{socialWorkspaceActions.getSocialWorkspace().getPath()}
            </parameter>
            <sort ascending="true" column="dc:created"/>
          </coreQueryPageProvider>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
          <useGlobalPageSize>false</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>#{currentDocument.id}</cacheKey>
          <cacheSize>10</cacheSize>
          <selectionList>CURRENT_SELECTION</selectionList>
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="file_listing" title="document_listing" translateTitle="false"/>
          </resultLayouts>
        </contentView>
  • <contentView name="user_social_workspace_view">
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>SELECT * FROM SocialWorkspace WHERE (ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState != 'deleted')</pattern>
            <sort ascending="true" column="dc:title"/>
          </coreQueryPageProvider>
          <showPageSizeSelector>false</showPageSizeSelector>
          <showRefreshCommand>false</showRefreshCommand>
          <useGlobalPageSize>false</useGlobalPageSize>
          <cacheKey>nocache</cacheKey>
          <cacheSize>1</cacheSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="SocialWorkspaces">
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>SELECT * FROM SocialWorkspace WHERE (ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0)</pattern>
        <sort ascending="true" column="dc:title"/>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>
      <selectionList>CURRENT_SELECTION</selectionList>
      <actions category="MODERATE_SOCIAL_WORKSPACE"/>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="SocialWorkspaces@cvListingLayout" title="document_listing" translateTitle="true"/>
      </resultLayouts>
    </contentView>

    <contentView name="article_listing_view">
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT *
            FROM Article
           WHERE ecm:isProxy = ?
                 AND ecm:mixinType != 'HiddenInNavigation'
                 AND ecm:isCheckedInVersion = 0
                 AND ecm:currentLifeCycleState != 'deleted'
                 AND ecm:path STARTSWITH ?
        </pattern>
        <pageSize>50</pageSize>
        <parameter>#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 0 : 1}
        </parameter>
        <parameter>#{socialWorkspaceActions.getSocialWorkspace().getPath()}
        </parameter>
        <sort ascending="true" column="dc:created"/>
      </coreQueryPageProvider>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>
      <selectionList>CURRENT_SELECTION</selectionList>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="article_listing" title="document_listing" translateTitle="false"/>
      </resultLayouts>
    </contentView>

    <contentView name="news_items_listing_view">
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT *
            FROM NewsItem
           WHERE ecm:isProxy = 0
                 AND ecm:mixinType != 'HiddenInNavigation'
                 AND ecm:isCheckedInVersion = 0
                 AND ecm:currentLifeCycleState != 'deleted'
                 AND ecm:path STARTSWITH ?
        </pattern>
        <pageSize>50</pageSize>
        <parameter>#{socialWorkspaceActions.getSocialWorkspace().getPath()}
        </parameter>
        <sort ascending="true" column="dc:created"/>
      </coreQueryPageProvider>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>
      <selectionList>CURRENT_SELECTION</selectionList>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="news_item_listing" title="document_listing" translateTitle="false"/>
      </resultLayouts>
    </contentView>

    <contentView name="file_listing_view">
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT *
            FROM File
           WHERE ecm:isProxy = ?
                 AND ecm:mixinType != 'HiddenInNavigation'
                 AND ecm:isCheckedInVersion = 0
                 AND ecm:currentLifeCycleState != 'deleted'
                 AND ecm:path STARTSWITH ?
          </pattern>
        <pageSize>50</pageSize>
        <parameter>#{socialWorkspaceActions.isCurrentUserAdministratorOrMemberOfCurrentSocialWorkspace() ? 0 : 1}
        </parameter>
        <parameter>#{socialWorkspaceActions.getSocialWorkspace().getPath()}
        </parameter>
        <sort ascending="true" column="dc:created"/>
      </coreQueryPageProvider>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>#{currentDocument.id}</cacheKey>
      <cacheSize>10</cacheSize>
      <selectionList>CURRENT_SELECTION</selectionList>
      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="file_listing" title="document_listing" translateTitle="false"/>
      </resultLayouts>
    </contentView>

    <contentView name="user_social_workspace_view">
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>SELECT * FROM SocialWorkspace WHERE (ecm:mixinType != 'HiddenInNavigation' AND ecm:isCheckedInVersion = 0 AND ecm:currentLifeCycleState != 'deleted')</pattern>
        <sort ascending="true" column="dc:title"/>
      </coreQueryPageProvider>
      <showPageSizeSelector>false</showPageSizeSelector>
      <showRefreshCommand>false</showRefreshCommand>
      <useGlobalPageSize>false</useGlobalPageSize>
      <cacheKey>nocache</cacheKey>
      <cacheSize>1</cacheSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
    </contentView>

  </extension>